{% extends "private_messages/base_pm.html" %}
{% load i18n %}
{% load jalali_view %}

{% block title %}{% trans "Sent Messages" %}{% endblock %}
{% block page_title %}{% trans "Sent Messages" %}{% endblock %}

{% block pm_content %}
{% if message_list %}
<table>
	<thead>
		<tr><th>{% trans "Recipient" %}</th><th>{% trans "Subject" %}</th><th>{% trans "Sent" %}</th><th>{% trans "Action" %}</th></tr>
	</thead>
	<tbody>
{% for message in message_list %}
	<tr>
		<td>{{ message.recipient }}</td>
		<td>
		<a href="{{ message.get_absolute_url }}">{{ message.subject }}</a>
		</td>
		<td>{% jalali_view message.sent_at %}</td>
		<td><a href="/pm/delete/{{ message.id }}?next=/pm/outbox/">{% trans "delete" %}</a></td>
	</tr>
{% endfor %}	
	</tbody>
</table>
{% else %}
<p>{% trans "No messages." %}</p>
{% endif %}
{% endblock pm_content %}